﻿using LinqToLfsWorld.Interface;
using LinqToLfsWorld.Attributes;
using System;
using System.Xml.Serialization;
using System.Runtime.Serialization;

namespace LinqToLfsWorld
{
	/// <summary>
	/// Racer fuel information.
	/// </summary>
	[Serializable]
	[DataContract]
	public class RacerFuel : ILfsWorldEntity
	{
		/// <summary>
		/// Gets or sets the name of the racer.
		/// </summary>
		/// <value>The name of the racer.</value>
		[PubstatQueryable(true)]
		[DataMember]
		public string RacerName { get; set; }

		/// <summary>
		/// Gets or sets the track ident.
		/// </summary>
		/// <value>The track ident.</value>
		[DataMember]
		public string TrackIdent { get; set; }

		/// <summary>
		/// Gets or sets the name of the track from the <see cref="TrackIdent"/>.
		/// </summary>
		/// <value>The name of the track.</value>
		[DataMember]
		public string TrackName { get; set; }

		/// <summary>
		/// Gets or sets the fuel percentage.
		/// </summary>
		/// <value>The fuel percentage.</value>
		[DataMember]
		public float FuelPercentage { get; set; }

		/// <summary>
		/// Gets or sets the car.
		/// </summary>
		/// <value>The car.</value>
		[DataMember]
		public string Car { get; set; }

	}
}
